<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<link type="text/css" rel="stylesheet" href="<%=basePath%>statics/js/plug/jbox/jBox.css"/>
<script type="text/javascript" src="<%=basePath %>statics/js/plug/jquery.validate.js"></script>
<script type="text/javascript" src="<%=basePath%>statics/js/plug/jbox/jBox.js"></script>
<script type="text/javascript" src="<%=basePath%>statics/js/area/info/area_info_add.js"></script>
<style>
	table tr td span.need::after{
		content: url("../../../statics/images/common/star.gif");
	    display: inline-block;
	    vertical-align: middle;
	    width: 15px;
	    padding-left: 10px;
	}
	table tr{
		height: 35px;
	}
</style>
<div class="window-title-bar" style="background-color: #fff;">
    <h5 class="title">添加地区</h5>
    <div class="nav">
        <span class="prev-nav">系统管理</span>
        <span class="space">/</span>
        <span class="prev-nav">地区管理</span>
        <span class="space">/</span>
        <span class="cur-nav">添加地区</span>
   	</div>
</div>
<form id="addForm">
    <table>
        <tr>
            <td class="attr" style="background-color: #fff;border: 0;"><span>名称：</span></td>
            <td style="border: 0;">
            	<input id="name" type="text" name="name" style="width: 325px;">
            	<span class="need"></span>
            </td>
        </tr>
        <tr>
            <td class="attr" style="background-color: #fff;border: 0;"><span>编码：</span></td>
            <td style="border: 0;">
            	<input id="code" type="text" name="code"  style="width: 325px;">
            	<span class="need"></span>
            </td>
        </tr>
        <tr>
            <td class="attr" style="background-color: #fff;border: 0;"><span>上级地区：</span></td>
            <td style="border: 0;">
            	<input id="parentName" type="text" name="parentName" value="${parent.name}"  style="width: 325px;">
            	<input id="parentId" type="hidden" name="parentId" value="${parent.id}"  style="width: 325px;">
            </td>
        </tr>
        <tr>
            <td class="attr" style="background-color: #fff;border: 0;"><span>地理要素：</span></td>
            <td style="border: 0;"><input id="geometryId" type="text" name="geometryId"  style="width: 325px;"></td>
        </tr>
        <tr>
            <td class="attr" style="background-color: #fff;border: 0;"><span>描述 ：</span></td>
            <td style="border: 0;"><input id="description" type="text" name="description"  style="width: 325px;"></td>
        </tr>
    </table>
    <div class="buttons" style="text-align:  -webkit-auto;margin-left: 10%;">
        <button type="submit" style="margin-top: 20px;float: left;">添加</button>
        <input type="button" value="重置" onclick="heavyLoad();" style="margin-top: 20px;margin-left:60px;float: left;">
 	</div>
</form>
